package com.hl.toolkit.server.tycoin.account.slaverepository;

import com.tycoin.account.slaveentity.TycoinAccountCash;
import com.tycoin.common.repository.AbstractRepository;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;


@Repository
@CacheConfig(cacheNames = "com.tycoin.account.slaverepository.tycoinAccountCashRepository")
public interface TycoinAccountCashRepository extends AbstractRepository<TycoinAccountCash, Long> {
	
 
 
 
	
	@Query(" select t from TycoinAccountCash t where t.userId=:userId")
	Page<TycoinAccountCash> getAccountCashByPage(Pageable pageable, @Param("userId") String userId);
 
	
	TycoinAccountCash findOneBylogno(String logno);

	
}
